import axios from "axios";
export function request(config) {

  const instance = axios.create({
    baseURL: '/api', 
    headers:{
    },
  })

  instance.interceptors.request.use(aaa => {

    return aaa
  }, err => {
    console.log(err);
  })
  instance.interceptors.response.use(aaa => {
    return aaa.data
  }, err => {
    console.log(err);
  })
  return instance(config)

}

